#include "card.h"

void Initialize(card &c)
{
	c.kind = 0;
	c.symbol = 0;
	c.value = -1;
}

void Initialize(card &c, char kind, char symbol, int value)
{
	c.kind = kind;
	c.symbol = symbol;
	c.value = value;
}

void Display(const card &c)
{
	char currentCardVisual[CARD_VISUAL_HEIGHT][CARD_VISUAL_WIDTH];

	memcpy(currentCardVisual, cardVisual, 
		sizeof(char)*CARD_VISUAL_HEIGHT * CARD_VISUAL_WIDTH);

	currentCardVisual[symbolTopLeft.x][symbolTopLeft.y] = c.symbol;
	currentCardVisual[kindMiddle.x][kindMiddle.y] = c.kind;
	currentCardVisual[symbolBottomRight.x][symbolBottomRight.y] = c.symbol;

	for (int i = 0; i < CARD_VISUAL_HEIGHT; i++)
	{
		for (int j = 0; j < CARD_VISUAL_WIDTH; j++)
		{
			std::cout << currentCardVisual[i][j];
		}
		std::cout << std::endl;
	}
}